function JM_aver_list = cal_JM_aver_list(data_train)
    % 初始化JM_average数组为空
    JM_aver_list = [];
    
    % 获取data_train的列数
    num_columns = size(data_train, 2);
    
    % 从第二列开始遍历data_train的每一列
    for i = 2:num_columns
        % 使用classifyAndCount函数处理当前列，获取类别信息
        class_info = classifyAndCount(data_train, i);
        
        % 计算当前列基于class_info的平均JM距离
        JM_average_new = cal_JM_average(class_info);
        
        % 将新计算的平均JM距离添加到JM_average数组中
        JM_aver_list = [JM_aver_list;JM_average_new];
    end
end
